<!DOCTYPE html>
<html>
<head>
<title>岗位异动管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="原公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.presentUnit" @keyup.enter="query" placeholder="现公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.presentDepartment" @keyup.enter="query" placeholder="现部门">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<a class="btn btn-default" @click="query">查询</a>

			#if($shiro.hasPermission("jobchangemanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("jobchangemanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("jobchangemanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("jobchangemanagement:firApprove"))
			<a class="btn btn-primary" @click="firApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;一级审核</a>
			#end
			#if($shiro.hasPermission("jobchangemanagement:secApprove"))
			<a class="btn btn-primary" @click="secApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;二级审核</a>
			#end
			#if($shiro.hasPermission("jobchangemanagement:thiApprove"))
			<a class="btn btn-primary" @click="thiApprove"><i class="fa fa-pencil-square-o"></i>&nbsp;三级审核</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-1 control-label">姓名</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="jobChangeManagement.name" readonly="readonly"  @click='popUser'  placeholder="请选择"/>
			    </div>

				<div class="col-sm-1 control-label">身份证号</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.idno" readonly="readonly"  placeholder="身份证号"/>
				</div>
			</div>


				<div class="form-group">
					<!--<div class="col-sm-1 control-label">入职日期</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="jobChangeManagement.joinDate" readonly="readonly"  placeholder="入职日期"/>
					</div>-->

					<div class="col-sm-1 control-label">原公司</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="jobChangeManagement.company" readonly="readonly"  placeholder="原公司"/>
					</div>

					<div class="col-sm-1 control-label">原部门</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="jobChangeManagement.originalDepartment" readonly="readonly"  placeholder="原部门"/>
					</div>
				</div>



									<div class="form-group">


				<div class="col-sm-1 control-label">原岗位</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.originalPost" readonly="readonly"  placeholder="原岗位"/>
				</div>

				<div class="col-sm-1 control-label">原基本工资</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.originalBaseSalary" placeholder="原基本工资"/>
				</div>
			</div>




							<div class="form-group">


				<div class="col-sm-1 control-label">原绩效工资</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.originalAchievementsSalary" placeholder="原绩效工资"/>
				</div>
				<div class="col-sm-1 control-label">原加班费</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.originalOvertimePay" placeholder="原加班费"/>
				</div>
			</div>

									<div class="form-group">


				<div class="col-sm-1 control-label">异动类型</div>
				<div class="col-sm-2">
					<select v-model="jobChangeManagement.changeType" class="form-control">
						<option v-for="changeType in dictList" :value="changeType.value">{{changeType.label}}</option>
					</select>
				</div>



										<div class="col-sm-1 control-label">现公司</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.presentUnit" placeholder="请选择"  readonly="readonly" @click="selectDept"/>
				</div>
		</div>
				<div class="form-group">

					<div class="col-sm-1 control-label">现部门</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="jobChangeManagement.presentDepartment" readonly="readonly"    placeholder="现部门"/>
					</div>


					<div class="col-sm-1 control-label">现岗位</div>
					<div class="col-sm-2">
						<!--<select v-model="jobChangeManagement.presentPost" class="form-control">
							<option v-for="presentPost in dictList1" readonly="readonly"  :value="presentPost.value">{{presentPost.label}}</option>
						</select>-->
						<input type="text" class="form-control" v-model="jobChangeManagement.presentPost" readonly="readonly"   placeholder="现岗位"/>
					</div>



				</div>
									<!--<div class="form-group">
			   	<div class="col-sm-1 control-label">现公司id</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="jobChangeManagement.presentUnitId" placeholder="现单位id"/>
			    </div>
			</div>-->

			<div class="form-group">
				<div class="col-sm-1 control-label">现基本工资</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.presentBaseSalary" placeholder="现基本工资"/>
				</div>

				<div class="col-sm-1 control-label">现绩效工资</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.presentAchievementsSalary" placeholder="现绩效工资"/>
				</div>


			</div>


				<div class="form-group">
					<div class="col-sm-1 control-label">现加班费</div>
					<div class="col-sm-2">
						<input type="text" class="form-control" v-model="jobChangeManagement.presentOvertimePay" placeholder="现加班费"/>
					</div>

				<div class="col-sm-1 control-label">其他说明</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="jobChangeManagement.remark" placeholder="其他说明"/>
				</div>
			</div>


							<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>


<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<div id="popOffice" style="display: none;padding:10px;">
	<table id="popOfficeGrid"></table>
	<div id="popOfficeGridPager"></div>
</div>


<!-- 弹出选择用户 -->
<div id="popUser" style="display: none;padding:10px;">
	<form id="formSearch" class="form-horizontal">
		<div class="form-group" >
			<label class="control-label col-sm-1" style="width: 120px" for="popUser_name">姓名 </label>
			<div class="col-sm-2">
				<input type="text" class="form-control" id="popUser_name">
			</div>
			<div class="col-sm-1" style="text-align:center;">
				<button type="button"  id="find_btn" @click="searchByName" class="btn btn-primary">查询</button>
			</div>
		</div>
	</form>
	<table id="popUserGrid"></table>
	<div id="popUserGridPager"></div>
</div>

<script src="${rc.contextPath}/js/hr/jobchangemanagement.js?_${date.systemTime}"></script>
</body>
</html>